﻿using System.Configuration;

namespace ZyGames.DZPocker.Model
{
	public class DbConfig
	{
		public const string Config = "DZConfig";
		public const string Data = "DZData";
		public const string Log = "DZLog";
		public const int GlobalPeriodTime = 0;
		public const int PeriodTime = 0;
		public const string PersonalName = "UserId";

		public static string ConfigConnectString
		{
			get
			{
				return ConfigurationManager.ConnectionStrings[Config].ConnectionString;
			}
		}

		public static string DataConnectString
		{
			get
			{
				return ConfigurationManager.ConnectionStrings[Data].ConnectionString;
			}
		}

		public static string LogConnectString
		{
			get
			{
				return ConfigurationManager.ConnectionStrings[Log].ConnectionString;
			}
		}

	}
}
